import 'package:json_annotation/json_annotation.dart';
import 'package:reabampos/src/reabam/operation/bean/base/rb_response.dart';

//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'request_get_platform_list.g.dart';

@JsonSerializable(explicitToJson: true,includeIfNull: false)
class RequestGetPlatformList{

  String mobile;
  String loginWord;
  int loginMethod;

  RequestGetPlatformList(this.mobile, this.loginWord,this.loginMethod);

  factory RequestGetPlatformList.fromJson(Map<String, dynamic> json) => _$RequestGetPlatformListFromJson(json);
  Map<String, dynamic> toJson() => _$RequestGetPlatformListToJson(this);

}


@JsonSerializable(explicitToJson: true,includeIfNull: false)
class ResponseGetPlatformList extends RBBaseResponse{

  List<Bean_platform_info>? data;

  ResponseGetPlatformList({this.data}); //添加固定格式

  factory ResponseGetPlatformList.fromJson(Map<String, dynamic> json) => _$ResponseGetPlatformListFromJson(json);
  Map<String, dynamic> toJson() => _$ResponseGetPlatformListToJson(this);

}

@JsonSerializable(explicitToJson: true,includeIfNull: false)
class Bean_platform_info {

   String? sysNo;  // 平台编码
   String? sysName;  // 平台名称
   bool isUserSelect;

   Bean_platform_info({this.sysNo,this.sysName,this.isUserSelect=false}); //添加固定格式

  factory Bean_platform_info.fromJson(Map<String, dynamic> json) => _$Bean_platform_infoFromJson(json);
  Map<String, dynamic> toJson() => _$Bean_platform_infoToJson(this);

}